import Vue from 'vue'

export default {
    fetch: (product) => Vue.http.get('get_product', { product }),
    fetchs: (options) => Vue.http.get('get_products', { options }),
    fetchArticle: (product) => Vue.http.get('get_product_article', { product }),
    addCart: (product, qty) => Vue.http.post('add_cart', { product, qty }),
    syncFavorite: (product, favorite) => Vue.http.post('set_product_favorite', { product, favorite}),
}
